﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Etapa1.SofRender
{
    public class Edge
    {
        public Edge(VertexType v0, VertexType v1)
        {


            if (v0[Slots.POSITION0].Y < v1[Slots.POSITION0].Y)
            {
                VertexType1 = v0;
                VertexType2 = v1;
                P1 = v0[Slots.POSITION0];
                P2 = v1[Slots.POSITION0];
            }
            else
            {
                VertexType2 = v0;
                VertexType1 = v1;
                P2 = v0[Slots.POSITION0];
                P1 = v1[Slots.POSITION0];
            }
        }


        public VertexType VertexType1;
        public VertexType VertexType2;        

        public Vector4 P1;
        public Vector4 P2;
    }
}
